<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <title>
            agoda 
        </title>
        <link rel="Shortcut Icon" type="image/x-icon" href="/homeassets/index/images/favicon.ico" />
        <link type="text/css" rel="stylesheet"  href="/homeassets/detail/css/basePatch.css"/>
        <link type="text/css" rel="stylesheet"  href="/homeassets/detail/css/common.css" source="widget"/>
        <link rel="stylesheet" href="/homeassets/index/css/base.min.css" />
        <link rel="stylesheet" href="/homeassets/index/css/index.min.css" />
        <link type="text/css" rel="stylesheet"  href="/homeassets/detail/css/myjd.easebuy.css" source="combo"/>
    </head>
    <script src="/homeassets/detail/js2/jquery-1.11.3.min.js"></script>
    <body>
        @if(session('success'))
            <script>
                alert("{{ session('success') }}");
                location.href = '/home/detail/site';
            </script>
        @endif
        <div id="nav" >
            <div class="w" >
                <div class="logo">
                    <a href="/" class="" style="float: left;margin-right: -50px;margin-top:20px;width: 158px;height: 80px;"><img src="/homeassets/index/images/logo.png" title="Agoda" alt="Agoda"></a>
                    <a href="/home/detail/index" target="_self" class="fore2" style="float: left;font-size: 20px;margin: 20px 0 0 6px;height: 22px;">天使的购哒</a>
                    <a href="/" class="fore3" >返回商城首页</a>
                </div>
                <div class="nav-r">
                    <div id="settleup-2014" class="dorpdown">
                        <div class="cw-icon">
                            <i class="ci-left"></i>
                            <i class="ci-right">&gt;</i><i class="ci-count" id="shopping-amount"></i>
                            <a target="_blank" href="/home/shopcart">我的购物车</a>
                        </div>
                    </div>
                </div>
                <div class="clr"></div>
            </div>
        </div>
        <div id="container">
            <div class="w">    
                <div id="content">
                    <div id="sub">
                        <div id="menu">
                            <dl class="fore1">
                                <dt id="_MYJD_setting">设置</dt>
                                <dd class="fore1_1" id="_MYJD_info" style="margin:0;">
                                    <a clstag="homepage|keycount|home2013|Homesafe" href="/home/detail/index" target="_self">个人信息</a>
                                </dd>
                                <dd class="fore1_2" id="_MYJD_safe" style="margin:0;">
                                    <a clstag="homepage|keycount|home2013|Homesafe" href="/home/detail/safety1" target="_self">账户安全</a>
                                </dd>
                                <dd class="fore1_3" id="_MYJD_accbinde" style="margin:0;">
                                    <a clstag="homepage|keycount|home2013|Homezhbd" href="/home/userorder/index"
                                    target="_self">
                                        订单管理
                                    </a>
                                </dd>
                                <dd class="fore1_5" id="_MYJD_comments" style="margin:0;">
                                    <a clstag="homepage|keycount|home2013|homeadd" href="/home/detail/site" target="_self">收货地址</a>
                                </dd>
                                <dd class="fore1_9" id="_MYJD_recor" style="margin:0;">
                                    <a clstag="homepage|keycount|home2013|Homeedm" href="/home/detail/consume" target="_self">可用余额</a>
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <!-- 中间收获地址内容 -->
            		<div id="main" style="display: block;">
                         <div id="addressList" class="mod-main mod-comm">
                            <div class="mt">
                                <span class="xinzeng" style=" cursor: pointer;display: inline-block;vertical-align: middle;font-weight: 700; padding: 0 14px;height: 28px; line-height: 28px;font-size: 14px;margin: 0 10px 0 0;background-color: #f5fbef;background-image: linear-gradient(to bottom,#f5fbef 0,#eaf6e2 100%); border-radius: 2px;border: 1px solid #bfd6af;color: #323333;">新增收货地址</span>
                                <span class="ftx-03">您已创建<span id="addressNum_top" class="ftx-02">{{ $data2 }}</span>个收货地址，最多可创建<span class="ftx-02">5</span>个</span>
                            </div>
                            @foreach($data as $k => $v)
                            <div class="mc">
                                <div class="sm easebuy-m " id="addresssDiv-138503093">
                                    <div class="smt">
                                        <h3 style="margin:0">
                                            @if($v['default'] == 1)
                                                <span class="ftx-04 ml10">默认地址</span>
                                            @endif
                                        </h3>
                                        <div class="extra">
                                            <a onclick="return" confirm('你确定要删除吗？') class="del-btn" href="/home/detail/delete/{{ $v['id'] }}">删除</a>
                                        </div> 
                                    </div>
                                    <div class="smc">
                                        <div class="items new-items">
                                            <div class="item-lcol">
                                                <div class="item">
                                                    <span class="label">收货人：</span>
                                                    <div class="fl">
                                                        {{ $v['name'] }}
                                                    </div>
                                                    <div class="clr"></div>
                                                </div>
                                                <div class="item">
                                                    <span class="label">地　址：</span>
                                                    <div class="fl">
                                                        {{ $v['sites'] }}
                                                    </div>
                                                    <div class="clr"></div>
                                                </div>
                                                <div class="item">
                                                    <span class="label">手　机：</span>
                                                    <div class="fl">
                                                        {{ $v['phone'] }}
                                                    </div>
                                                    <div class="clr"></div>
                                                </div>
                                            </div>
                                            <div class="item-rcol">
                                                <div class="extra">
                                                    @if($v['default'] == 0)
                                                    <a class="ml10 ftx-05" value="0" href="/home/detail/update/{{ $v['id'] }}">设为默认</a>
                                                    @endif
                                                    <a class="bianji" info="{{ $v['id'] }}"  style="cursor: pointer;color: #005ea7;margin-left: 10px;text-decoration: none;margin: 0; padding: 0;line-height: 22px;-webkit-font-smoothing: antialiased;" href="javascript:;" >编辑</a>
                                                </div>
                                            </div>
                                            <div class="clr"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            @endforeach

                            <div class="mt" id="addAddressDiv_bottom">
                                <span class="xinzeng" style="cursor: pointer;display: inline-block;vertical-align: middle;font-weight: 700; padding: 0 14px;height: 28px; line-height: 28px;font-size: 14px;margin: 0 10px 0 0;background-color: #f5fbef;background-image: linear-gradient(to bottom,#f5fbef 0,#eaf6e2 100%); border-radius: 2px;border: 1px solid #bfd6af;color: #323333;">新增收货地址</span>
                                <span class="ftx-03">您已创建<span id="addressNum_botton" class="ftx-02">{{ $data2 }}</span>个收货地址，最多可创建<span class="ftx-02">5</span>个</span>
                            </div>
                        </div>
                    </div>

                    <!-- 添加收获地址 -->
                    <div class="thickdiv" id="" style="width: 100%; height: 1181px;display:none"></div>
                    <div class="thickbox" id="" style="left: 289.5px; width: 762px; height: 542px;display:none">
                        <div class="thickwrap" style="width: 760px;">
                            <div class="thicktitle" id="" style="width:740px">
                                <span>添加收货地址</span>
                            </div>
                            <div class="thickcon" id="" style="width: 740px; height: 490px; padding-left: 10px; padding-right: 10px;">
                                <div id="addressDiagDiv">
                                    <div class="m" id="edit-cont">
                                        <div class="mc">
                                            <form method="post" action="/home/detail/insert">
                                                {{ csrf_field() }}
                                                <div class="form">
                                                    <div class="item">
                                                        <span class="label"><em>*</em>收货人：</span>
                                                        <div class="fl">
                                                            <input id="name_name" type="text" name="name" class="text" >
                                                            <span></span>
                                                        </div>
                                                        <div class="clr"></div>
                                                    </div>
                                                    <div class="item">
                                                        <span class="label"><em>*</em>所在地区：</span>
                                                        <div class="fl">
                                                            省：<select id="Province" class="sele" runat="server" name="sheng" style="width: 90px" ></select>
                                                            市：<select id="Country" class="sele" runat="server" name="shi" style="width: 90px"></select>
                                                            县：<select id="Town"class="sele" runat="server" name="xian" style="width: 90px"></select>
                                                            <span></span>
                                                        </div>
                                                        <div class="clr"></div>
                                                    </div>
                                                    <div class="item">
                                                        <span class="label"><em>*</em>详细地址：</span>
                                                        <div class="fl">
                                                            <input id="sites_sites" type="text" name="sites" class="text text1" >
                                                            <span></span>
                                                        </div>
                                                        <div class="clr"></div>
                                                    </div>
                                                    <div class="item">
                                                        <span class="label"><em>*</em>手机号码：</span>
                                                        <div class="fl">
                                                            <input id="phone_phone" type="text" name="phone" maxlength="11" class="text" >
                                                            <span></span>
                                                        </div>
                                                        <div class="clr"></div>
                                                    </div>
                                                    <div class="btns">
                                                        <input type="submit" value="保存收获地址" style="width:120px;height:30px;font-size:14px;color:#333;">
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                               
                            </div>
                            <a href="#" class="thickclose" id="">×</a>
                        </div>
                    </div>
                    <!-- 添加收获地址结束 -->


                    <!-- 修改收获地址开始 -->
                    <div class="thickdiv1"  style="width: 100%; height: 1181px;display:none;position: fixed;top: 0;left: 0; z-index: 10000001;background: #000;border: 0;opacity: .15;margin: 0;padding: 0;color: #333;-webkit-font-smoothing: antialiased; "></div>
                    <div class="thickbox1"  style="left: 289.5px; width: 762px; height: 542px;display:none;position: absolute;z-index: 10000002;overflow: hidden;padding: 0;border: 4px solid rgba(0,0,0,.1);-webkit-border-radius: 5px;margin: 0;    color: #333;-webkit-font-smoothing: antialiased;">
                        <div class="thickwrap" style="width: 760px;">
                            <div class="thicktitle" id="" style="width:740">
                                <span>编辑收获地址</span>
                            </div>
                            <div class="thickcon" id="" style="width: 740px; height: 490px; padding-left: 10px; padding-right: 10px;">
                                <div id="addressDiagDiv">
                                    <div class="m" id="edit-cont">
                                        <div class="mc">
                                            <form method="post" action="/home/detail/updates">
                                                <input type="hidden" name="editid" id="editid">
                                                {{ csrf_field() }}
                                                <div class="form">
                                                    <div class="item">
                                                        <span class="label"><em>*</em>收货人：</span>
                                                        <div class="fl">
                                                            <input id="name_name1" type="text" name="name" class="text" value="">
                                                            <span></span>
                                                        </div>
                                                        <div class="clr"></div>
                                                    </div>
                                                    <!-- <div class="item">
                                                        <span class="label"><em>*</em>所在地区：</span>
                                                        <div class="fl">
                                                            省：<select id="Province" class="sele" runat="server" name="sheng" style="width: 90px" ></select>
                                                            市：<select id="Country" class="sele" runat="server" name="shi" style="width: 90px"></select>
                                                            县：<select id="Town"class="sele" runat="server" name="xian" style="width: 90px"></select>
                                                            <span></span>
                                                        </div>
                                                        <div class="clr"></div>
                                                    </div> -->
                                                    <div class="item">
                                                        <span class="label"><em>*</em>收获地址：</span>
                                                        <div class="fl">
                                                            <input id="sites_sites1" type="text" name="sites" class="text text1" >
                                                            <span></span>
                                                        </div>
                                                        <div class="clr"></div>
                                                    </div>
                                                    <div class="item">
                                                        <span class="label"><em>*</em>手机号码：</span>
                                                        <div class="fl">
                                                            <input id="phone_phone1" type="text" name="phone" maxlength="11" class="text" >
                                                            <span></span>
                                                        </div>
                                                        <div class="clr"></div>
                                                    </div>
                                                    <div class="btns">
                                                        <input type="submit" value="保存收获地址" style="width:120px;height:30px;font-size:14px;color:#333;">
                                                    </div>
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                               
                            </div>
                            <a href="#" class="thickclose" id="">×</a>
                        </div>
                    </div>
                    <!-- 修改收获地址结束 -->

                    <!-- 中间内容结束 -->
                </div>
            </div>
        </div>
        <div class="site-footer">
            <div class="container">
                <div class="footer-links clearfix">
                    <dl class="col-links col-links-first">
                        <dt>
                            帮助中心
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            服务支持
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            线下门店
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            关于agoda
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            <a href="/home/link/index">有情连接</a>
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            关注我们
                        </dt>
                    </dl>
                    <dl class="col-links ">
                        <dt>
                            特色服务
                        </dt>
                    </dl>
                    <div class="col-contact">
                        <p class="phone" style="color:#0283DF">
                            188-4611-9379
                        </p>
                        <p>
                            <span class="J_serviceTime-normal" style="
                            ">
                            
                            </span>
                            
                            <br>
                           
                        </p>
                        <a rel="nofollow" class="btn btn-line-primary btn-small" href=""
                        target="_blank">
                            <i class="iconfont">
                                &#xe600;
                            </i>
                            
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <div class="site-info">

            <div class="container">
                <div class="logo ir">
                    agoda官网
                </div>
                <div class="info-text">
                    <p>
                        &copy;
                        <a href="" target="_blank" title="agoda.com">
                            agoda.com
                        </a>
                        鲁ICP证110507号
                        <a href="/" target="_blank" rel="nofollow">
                            鲁ICP备10046444号
                        </a>
                        <a rel="nofollow" href=""
                        target="_blank">
                            鲁公网安备11010802020134号
                        </a>
                        <a rel="nofollow" href="//c1.mifile.cn/f/i/2013/cn/jingwangwen.jpg" target="_blank"
                        rel="nofollow">
                            鲁网文[2014]0059-0009号
                        </a>
                        <br>
                        违法和不良信息举报电话：185-0130-1238，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试
                    </p>
                </div>
            </div>
            <div class="slogan ir">
                探索黑商城，agoda为发烧而生
            </div>
        </div>
        <script src="/homeassets/detail/link/js/site.js"></script>
        <script src="/homeassets/detail/liandong/area.js"></script>
        <script language="javascript">
            setup();
        </script>
   </body>
</html>